AweBooking\Support\Decimal B

Total Complexity 88
Dependencies 6
Dependents 6
Total lines 771
Lines of code 285
Logical lines of code 159
Comment lines 372
Methods 44
Properties 3

Methods 44

Method Rating Maintainability Complexity Lines of code
from_string()
S
55 6 18
as_string()
S
54 5 20
truncate_decimal_string()
S
57 5 16
get_scalar_operand()
S
60 5 13
create()
S
60 5 12
from_numeric()
S
61 3 11
validate_integer_bounds()
S
66 3 8
to_int_value()
S
67 3 7
from_decimal()
S
66 3 8
assert_same_scale()
S
70 3 6
compare()
S
68 3 7
divide()
S
61 2 11
with_scale()
S
62 2 11
abs()
S
70 2 6
equals()
S
79 2 3
__construct()
S
68 2 7
subtract()
S
65 2 9
percentage_of()
S
69 2 7
discount_percentage_of()
S
69 2 7
from_raw_value()
S
72 2 5
validate_scale()
S
73 2 5
add()
S
65 2 9
surcharge()
S
71 1 6
discount()
S
71 1 6
to_percentage()
S
75 1 4
to_additive_inverse()
S
80 1 3
div()
S
79 1 3
mul()
S
79 1 3
multiply()
S
68 1 7
less_than()
S
79 1 3
sub()
S
80 1 3
is_negative()
S
80 1 3
is_positive()
S
81 1 3
is_zero()
S
80 1 3
less_than_or_equal()
S
79 1 3
set_default_scale()
S
73 1 5
greater_than_or_equal()
S
79 1 3
greater_than()
S
79 1 3
not_equals()
S
80 1 3
as_numeric()
S
79 1 3
as_raw_value()
S
82 1 3
get_scale()
S
82 1 3
zero()
S
79 1 3
__toString()
S
81 1 3